package StudyCode.summary.textfile;

import java.io.*;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class WritingISOLatin1EncodedData {
	public static void main(String[] argv) {
		try {
			Writer out = new BufferedWriter(new OutputStreamWriter(
					new FileOutputStream("E:/Copy/test1.txt"), "8859_1"));
			out.write("\n");
			out.write("www.tah1986.com");
			out.close();
			System.out.println("以 ISO Latin-1编码写入数据到文件成功");
		} catch (UnsupportedEncodingException e) {
		} catch (IOException e) {
		}
	}
}
